// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

import ElementUI from 'element-ui'; //引入Element-ui核心js
import 'element-ui/lib/theme-chalk/index.css';//引入Element-ui默认样式
Vue.use(ElementUI);// 告诉Vue我要使用Element-ui

//引入axios
import axios from 'axios'
//配置axios的全局基本路径 t
axios.defaults.baseURL='https://www.fastmock.site/mock/6feac19329bfc467ab705944e0c6be67/pethome'
//全局属性配置，在任意组件内可以使用this.$http获取axios对象
Vue.prototype.$http = axios

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
